class BootStrap {

    def init = { servletContext ->
        //Create Repair Shop
        def rs1= new your_car_status.RepairShop(name:"Taller Primero",username:"taller1",address:"Calle falsa 1234 del taller",phone:"525656363",password:"123456",confirmPassword:"123456");
        rs1.save(flush:true);
        def rs2= new your_car_status.RepairShop(name:"Taller Segundo",username:"taller2",address:"Calle falsa 5678 del taller",phone:"879543541",password:"123456",confirmPassword:"123456");
        rs2.save(flush:true);
        def rs3= new your_car_status.RepairShop(name:"Taller Tercero",username:"taller3",address:"Calle falsa 91011 del taller",phone:"541685789",password:"123456",confirmPassword:"123456");
        rs3.save(flush:true);
        def rs4= new your_car_status.RepairShop(name:"Taller cuarto",username:"taller4",address:"Calle falsa 1213 del taller",phone:"846855223",password:"123456",confirmPassword:"123456");
        rs4.save(flush:true);
        //Create Customer
        def c1=  new your_car_status.Customer(identification:"93052210247",email:"customera@hotmail.com",confirmEmail:"customera@hotmail.com",name:"customerA",phoneNumber:"78564214",address:"direccion del customerA",password:"123456",confirmPassword:"123456",repairShop:rs1)
        c1.save(flush:true)
        def c2=  new your_car_status.Customer(identification:"93052210789",email:"customerb@hotmail.com",confirmEmail:"customerb@hotmail.com",name:"customerB",phoneNumber:"98754216",address:"direccion del customerB",password:"123456",confirmPassword:"123456",repairShop:rs4)
        c2.save(flush:true)
        def c3=  new your_car_status.Customer(identification:"93052210101",email:"customerc@hotmail.com",confirmEmail:"customerc@hotmail.com",name:"customerC",phoneNumber:"78925106",address:"direccion del customerC",password:"123456",confirmPassword:"123456",repairShop:rs3)
        c3.save(flush:true)
        def c4=  new your_car_status.Customer(identification:"93052210112",email:"customerd@hotmail.com",confirmEmail:"customerd@hotmail.com",name:"customerD",phoneNumber:"98252125",address:"direccion del customerD",password:"123456",confirmPassword:"123456",repairShop:rs4)
        c4.save(flush:true)
        def c5=  new your_car_status.Customer(identification:"93052210131",email:"customere@hotmail.com",confirmEmail:"customere@hotmail.com",name:"customerE",phoneNumber:"85255887",address:"direccion del customerE",password:"123456",confirmPassword:"123456",repairShop:rs1)
        c5.save(flush:true)
        def c6=  new your_car_status.Customer(identification:"93052210145",email:"customerf@hotmail.com",confirmEmail:"customerf@hotmail.com",name:"customerF",phoneNumber:"85178963",address:"direccion del customerF",password:"123456",confirmPassword:"123456",repairShop:rs2)
        c6.save(flush:true)
        def c7=  new your_car_status.Customer(identification:"93052210156",email:"customerg@hotmail.com",confirmEmail:"customerg@hotmail.com",name:"customerG",phoneNumber:"78921796",address:"direccion del customerG",password:"123456",confirmPassword:"123456",repairShop:rs2)
        c7.save(flush:true)
        def c8=  new your_car_status.Customer(identification:"93052210789",email:"customerh@hotmail.com",confirmEmail:"customerh@hotmail.com",name:"customerH",phoneNumber:"88895625",address:"direccion del customerH",password:"123456",confirmPassword:"123456",repairShop:rs1)
        c8.save(flush:true)
        //Create Mechanical Technician
        def m1= new your_car_status.MechanicalTechnician(name:"MecanicoA",username:"mecanico1",speciality:"motores",phone:"87954665",address:"casa del mecanico A",password:"123456",confirmPassword:"123456",repairShop:rs1);
        m1.save(flush:true)
        def m2= new your_car_status.MechanicalTechnician(name:"MecanicoB",username:"mecanico2",speciality:"motores",phone:"87954665",address:"casa del mecanico B",password:"123456",confirmPassword:"123456",repairShop:rs2);
        m2.save(flush:true)
        def m3= new your_car_status.MechanicalTechnician(name:"MecanicoC",username:"mecanico3",speciality:"motores",phone:"87954665",address:"casa del mecanico C",password:"123456",confirmPassword:"123456",repairShop:rs3);
        m3.save(flush:true)
        def m4= new your_car_status.MechanicalTechnician(name:"MecanicoD",username:"mecanico4",speciality:"motores",phone:"87954665",address:"casa del mecanico D",password:"123456",confirmPassword:"123456",repairShop:rs2);
        m4.save(flush:true)
        def m5= new your_car_status.MechanicalTechnician(name:"MecanicoE",username:"mecanico5",speciality:"motores",phone:"87954665",address:"casa del mecanico E",password:"123456",confirmPassword:"123456",repairShop:rs4);
        m5.save(flush:true)
        def m6= new your_car_status.MechanicalTechnician(name:"MecanicoF",username:"mecanico6",speciality:"motores",phone:"87954665",address:"casa del mecanico F",password:"123456",confirmPassword:"123456",repairShop:rs1);
        m6.save(flush:true)
        def m7= new your_car_status.MechanicalTechnician(name:"MecanicoG",username:"mecanico7",speciality:"motores",phone:"87954665",address:"casa del mecanico G",password:"123456",confirmPassword:"123456",repairShop:rs1);
        m7.save(flush:true)
        def m8= new your_car_status.MechanicalTechnician(name:"MecanicoH",username:"mecanico8",speciality:"motores",phone:"87954665",address:"casa del mecanico H",password:"123456",confirmPassword:"123456",repairShop:rs3);
        m8.save(flush:true)
        def m9= new your_car_status.MechanicalTechnician(name:"MecanicoI",username:"mecanico9",speciality:"motores",phone:"87954665",address:"casa del mecanico I",password:"123456",confirmPassword:"123456",repairShop:rs2);
        m9.save(flush:true)
        //Create Vehicle
        def v1= new your_car_status.Vehicle(licensePlate:"ABC 123",confirmLicensePlate:"ABC 123",carModel:"2013",colour:"Black",serialNumber:"9876543210",policyNumber:"1234567890",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c1);
        v1.save(flush:true)
        def v2= new your_car_status.Vehicle(licensePlate:"ABC 124",confirmLicensePlate:"ABC 124",carModel:"2013",colour:"Black",serialNumber:"9876543211",policyNumber:"1234567891",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c1);
        v2.save(flush:true)
        def v3= new your_car_status.Vehicle(licensePlate:"ABC 125",confirmLicensePlate:"ABC 125",carModel:"2013",colour:"Black",serialNumber:"9876543212",policyNumber:"1234567892",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c1);
        v3.save(flush:true)
        def v4= new your_car_status.Vehicle(licensePlate:"ABC 126",confirmLicensePlate:"ABC 126",carModel:"2013",colour:"Black",serialNumber:"9876543213",policyNumber:"1234567893",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c2);
        v4.save(flush:true)
        def v5= new your_car_status.Vehicle(licensePlate:"ABC 127",confirmLicensePlate:"ABC 127",carModel:"2013",colour:"Black",serialNumber:"9876543214",policyNumber:"1234567894",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c2);
        v5.save(flush:true)
        def v6= new your_car_status.Vehicle(licensePlate:"ABC 128",confirmLicensePlate:"ABC 128",carModel:"2013",colour:"Black",serialNumber:"9876543215",policyNumber:"1234567895",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c3);
        v6.save(flush:true)
        def v7= new your_car_status.Vehicle(licensePlate:"ABC 129",confirmLicensePlate:"ABC 129",carModel:"2013",colour:"Black",serialNumber:"9876543216",policyNumber:"1234567896",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c4);
        v7.save(flush:true)
        def v8= new your_car_status.Vehicle(licensePlate:"ABC 120",confirmLicensePlate:"ABC 120",carModel:"2013",colour:"Black",serialNumber:"9876543217",policyNumber:"1234567897",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c5);
        v8.save(flush:true)
        def v9= new your_car_status.Vehicle(licensePlate:"ABC 121",confirmLicensePlate:"ABC 121",carModel:"2013",colour:"Black",serialNumber:"9876543218",policyNumber:"1234567898",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c6);
        v9.save(flush:true)
        def v10= new your_car_status.Vehicle(licensePlate:"ABC 122",confirmLicensePlate:"ABC 122",carModel:"2013",colour:"Black",serialNumber:"9876543219",policyNumber:"1234567899",type:"Car",carMake:"Mercedez",cylinderNumber:"4",mileage:"54000",fuelType:"Gaz",customer:c7);
        v10.save(flush:true)
    }
    def destroy = {
    }
}
